package com.zjt.pictureselector.holder;

import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import com.zjt.pictureselector.R;

/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2017</p>
 * <P>Company: </p>
 *
 * @author zhengjianting
 * @time 2017/11/13 0013 上午 11:04
 */

public class FolderHolder extends RecyclerView.ViewHolder {

    private ImageView ivImage;
    private ImageView ivSelect;
    private TextView tvFolderName;
    private TextView tvFolderSize;

    public FolderHolder(View itemView) {
        super(itemView);
        ivImage = (ImageView) itemView.findViewById(R.id.iv_image);
        ivSelect = (ImageView) itemView.findViewById(R.id.iv_select);
        tvFolderName = (TextView) itemView.findViewById(R.id.tv_folder_name);
        tvFolderSize = (TextView) itemView.findViewById(R.id.tv_folder_size);
    }

    public FolderHolder(LayoutInflater inflater, ViewGroup parent) {
        this(inflater.inflate(R.layout.item_folder_view, parent, false));
    }

    public ImageView getIvImage() {
        return ivImage;
    }

    public void setIvImage(ImageView ivImage) {
        this.ivImage = ivImage;
    }

    public ImageView getIvSelect() {
        return ivSelect;
    }

    public void setIvSelect(ImageView ivSelect) {
        this.ivSelect = ivSelect;
    }

    public TextView getTvFolderName() {
        return tvFolderName;
    }

    public void setTvFolderName(TextView tvFolderName) {
        this.tvFolderName = tvFolderName;
    }

    public TextView getTvFolderSize() {
        return tvFolderSize;
    }

    public void setTvFolderSize(TextView tvFolderSize) {
        this.tvFolderSize = tvFolderSize;
    }
}
